package com.mew.lobby.message.response;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @author dylin
 * @create 2021/2/1 0001
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GoldDealConfigMessage extends ZebraBaseMessage<GoldDealConfigMessage> {
    private int id;//id
    private long originalGold;//原价
    private long currentGold;//现价
    private String price;//购买价格

    @Override
    public void write(ByteBuf b) {
        writeInt(b,id);
        writeLong(b,originalGold);
        writeLong(b,currentGold);
        writeString(b,price);
    }

    @Override
    public GoldDealConfigMessage read(ByteBuf byteBuf) {
        return null;
    }
}
